home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10844 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.tu-ilmenau.de!usenet
  2. From: Gregor Gaertner <gregor.gaertner@theoinf.tu-ilmenau.de>
  3. Newsgroups: comp.lang.c++
  4. Subject: Truncate binaryfile at a special position
  5. Date: Mon, 11 Mar 1996 15:25:04 +0100
  6. Organization: Technische Universitaet Ilmenau
  7. Message-ID: <314437C0.41C67EA6@theoinf.tu-ilmenau.de>
  8. NNTP-Posting-Host: proipc1.theoinf.tu-ilmenau.de
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3_U1 sun4c)
  13.  
  14. Hello guys,
  15.  
  16. I have the following problem:
  17. I have a file, where the last 200 bytes are useless. No I want to
  18. truncate the last 200 bytes, but I don't know how to realize this with
  19. the help of the streamclasses in C++. The way to copy the part until the
  20. useless bytes to a new file is not acceptable for me, because if the
  21. file is 20 Mb long and I want only to cut 200 bytes from the end, I need
  22. with this insufficient method 20Mb free space more on the harddisc total
  23. because of the copy. 
  24. Can anyone help ???
  25.  
  26. Thanx
  27. G.G.
  28.